<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class PointBagLog extends Model
{
    protected $fillable = [
        'user_id',
        'name',
        'image',
        'growing_coffee',
        'free_coupon',
        'discount_coupon',
    ];

    protected $casts = [
        'free_coupon' => 'boolean',
    ];

    public function user()
    {
        return $this->belongsTo(User::class, 'user_id');
    }
}
